import Home from "../pages/home";
import Router from "../pages/router";
import RouterParam from "../pages/router/Param";
import RouterSearch from "../pages/router/Search";
import RouterState from "../pages/router/State";
import TodoList from "../pages/todo-list";
import GitSearch from "../pages/github-search";
import Redux from "../pages/redux-demo";

export default [
    {
        path: '/layout/home',
        title: '首页',
        component: Home
    },
    {
        path: '/layout/router',
        title: '路由',
        component: Router
    },
    {
        path: '/layout/router-param/:id/:name',
        hide: true,
        component: RouterParam
    },
    {
        path: '/layout/router-search',
        hide: true,
        component: RouterSearch
    },
    {
        path: '/layout/router-state',
        hide: true,
        component: RouterState
    },
    {
        path: '/layout/todo-list',
        title: '待办列表',
        component: TodoList
    },
    {
        path: '/layout/github-search',
        title: 'github搜索',
        component: GitSearch
    },
    {
        path: '/layout/redux',
        title: 'redux使用',
        component: Redux
    },
]

